package com.example.work1.server.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Student {
    private String id;
    private String name;
    private String sex; // Use enum for better type safety
    private String majorName;
    private Long majorId;
    private Date enrollmentDate;
    private Double score;
    private boolean isDeleted; // 标记学生已删除
    @Override
    public String toString() {
        return String.format(
                "学生信息: ID: %s, 姓名: %s, 性别: %s, 专业编号: %d, 专业名称: %s, 入学日期: %s, 成绩: %.2f",
                id, name, sex, majorId, majorName, enrollmentDate, score
        );
    }


}
